package com.kanshu.basictest.ui.activity.net;

import android.widget.EditText;
import android.widget.ListView;

import com.kanshu.basictest.R;
import com.kanshu.basictest.ui.base.BaseToolbarActivity;

import androidx.appcompat.widget.AppCompatButton;
import butterknife.BindView;
import butterknife.OnClick;

public class TelnetConnectionActivity extends BaseToolbarActivity {

    @BindView(R.id.et_ip)
    EditText etIp;
    @BindView(R.id.et_port)
    EditText etPort;
    @BindView(R.id.btn_switch)
    AppCompatButton btnSwitch;
    @BindView(R.id.lv_msg)
    ListView lvMsg;

    private static final int CONN_STATUS_DISCONNECTED = 0;
    private static final int CONN_STATUS_CONNECTED = 1;
    private static final int CONN_STATUS_CONNECTING = 2;


    private int connStatus = CONN_STATUS_DISCONNECTED;


    @Override
    protected int provideLayoutResId() {
        return R.layout.activity_telnet_connection;
    }

    @Override
    protected String provideBarTitle() {
        return "Telnet 连接测试";
    }


    @Override
    protected void init() {
        super.init();
        etIp.setText(R.string.default_ip);
        etPort.setText(R.string.default_port);
        btnSwitch.setText(R.string.connect);
    }

    @OnClick(R.id.btn_switch)
    public void onViewClicked() {

    }
}
